package com.zhengbing.tj.design.builder;

public class ConcreteBuilder implements Builder {
    private Product product;

    public ConcreteBuilder() {
        this.product = new Product();
    }

    @Override
    public void buildPartA() {
        product.addPart("Part A - Basic Framework");
    }

    @Override
    public void buildPartB() {
        product.addPart("Part B - Core Component");
    }

    @Override
    public void buildPartC() {
        product.addPart("Part C - Additional Feature");
    }

    @Override
    public Product getResult() {
        return product;
    }
}